package com.kk.dp.danli;

/**
 * @Description:
 * @Author: kangkai
 * @Date: 2025/3/13 20:18
 */
public class Mgr07 {

    private static class Mgr07Holder{
        private static final Mgr07 INSTANCE = new Mgr07();
    }
    private Mgr07(){}

    public static Mgr07 getInstance() {
        return Mgr07Holder.INSTANCE;
    }
    public void m(){
        System.out.println("m");
    }

    public static void main(String[] args) {
        Mgr07 m1= Mgr07.getInstance();
        Mgr07 m2= Mgr07.getInstance();
        System.out.println(m1==m2);
    }
}
